package com.cheer.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author lx
 */
@Data
public class UserUpdateDTO {

    @NotNull(message = "ID不能为空")
    private Long id;

    @NotBlank(message = "姓名不能为空")
    @Length(max = 30, message = "姓名不能超过30字符数")
    private String name;

    @Length(max = 10, message = "销户时间不能超过10个字符")
    private String lockedTime;

    @Length(max = 20, message = "省份不能超过20个字符")
    private String province;

    @Length(max = 50, message = "学校不能超过50个字符")
    private String schoolName;

    @Length(max = 30, message = "申请人不能超过30个字符")
    private String applicant;

}
